package com.example.test.model;

import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "表示一个订单的详细信息")
public class Order {
    @Schema(description = "订单的唯一标识符", example = "1")
    private long id;
    @Schema(description = "订单关联的用户ID", example = "1")
    private long userId;
    @Schema(description = "产品名称", example = "iPhone 13")
    private String productName;
    @Schema(description = "支付时间", pattern = "yyyy-MM-ddTHH:mm:ss")
    private LocalDateTime paymentTime;
    @Schema(description = "支付金额", example = "999.99")
    private BigDecimal paymentAmount;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public LocalDateTime getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(LocalDateTime paymentTime) {
        this.paymentTime = paymentTime;
    }

    public BigDecimal getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(BigDecimal paymentAmount) {
        this.paymentAmount = paymentAmount;
    }
}
